#!/bin/sh

defaultPath=./make/clone-repo.sh
defaultRepo=https://github.com/leachim6/hello-world.git

src=plugins
clonefile=clone-repos.sh
clonepath=${src}/${clonefile}

username=${1:-""}

if [ -e ${clonepath} ] ; then
	sh ${clonepath} ${username}
else
    if [ -e ${defaultPath} ] ; then
        ${defaultPath} ${defaultRepo}
    else
        echo "No such file: ${defaultPath}"
    fi
fi

